package com.linzt.candy.wxmp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.linzt.candy.common.core.web.domain.BaseEntity;
import com.linzt.candy.system.api.domain.SysDept;

/**
* @Author linzt
* @Date 2020/12/19 11:00 下午
* @Description 微信公众号表
* @Version 1.0
*/
@TableName("tb_wx_mp_info")
public class WxMpInfo extends BaseEntity {

    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private String id;

    /** 所属乡镇 */
    @TableField(exist = false)
    private SysDept dept;

    /** 公众号名称 */
    private String name;

    /** 令牌 */
    private String token;

    /** 微信appid */
    private String appId;

    /** 微信app secret */
    private String appSecret;

    /** 微信公众号的EncodingAESKey */
    private String aesKey;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public SysDept getDept() {
        return dept;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getAesKey() {
        return aesKey;
    }

    public void setAesKey(String aesKey) {
        this.aesKey = aesKey;
    }

    @Override
    public String toString() {
        return "WxMp{" +
                "id='" + id + '\'' +
                ", dept=" + dept +
                ", name='" + name + '\'' +
                ", token='" + token + '\'' +
                ", appId='" + appId + '\'' +
                ", appSecret='" + appSecret + '\'' +
                ", aesKey='" + aesKey + '\'' +
                '}';
    }
}